/*
 * @Author: ljc
 * @Date: 2025-01-14 19:17:50
 * @LastEditors: g05047
 * @LastEditTime: 2025-01-14 19:22:09
 * @Description: 分类接口地址
 */
import { defAxios as request } from '@/utils/http';
export function useCategoryApi() {
    return {
        /**
    *  获取分类信息接口
    * @param {*} classifyId : 分类ID
    * @returns 
    */
        getSysClassifyInfo(guid) {
            return request({
                url: '/classify/getSysClassify',
                method: 'POST',
                data: {
                    guid
                },
            });
        },
        /**
     * 开启、禁用分类
     * @param {*} guid : 分类ID
     * @returns 
     */
        disableOrEnableClassify(params) {
            return request({
                url: '/classify/disableOrEnableClassify',
                method: 'POST',
                data: params
            });
        },
        /**
         * 保存分类
         * @param {*} guid : 分类ID
         * @returns 
         */
        saveSysClassify(params) {
            return request({
                url: '/classify/saveSysClassify',
                method: 'POST',
                data: params
            });
        },
        /**
         * 删除分类
         * @param {*} guid : 分类ID
         * @returns 
         */
        deleteSysClassify(params) {
            return request({
                url: '/classify/deleteSysClassify',
                method: 'POST',
                data: params
            });
        },
    };
}